package com.design.责任链模式;

public class HandlerFactory {

	public static GateWayHandler getFirstWayHandler() {
		GateWayHandler currentLimentHander = new CurrentLimitHandler();
		GateWayHandler blacklistHand = new BlacklistHandler();
		
		
		GateWayHandler converstatinHander = new ConversationHandler();
		blacklistHand.setNextGateWayHandler(converstatinHander);
		
		currentLimentHander.setNextGateWayHandler(blacklistHand);
		
		return currentLimentHander;
	}
	
}
